From 1fa280938b62a489317934ea7db8114a649dfc87 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Mon, 10 Jan 2011 18:46:51 +0900 Subject: [PATCH] Fixed GtkCellAreaBox to not allocate invisible cells. This was already done for the most part but not taken care of for single cell groups (which is the most common case). --- gtk/gtkcellareabox.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkcellareabox.c b/gtk/gtkcellareabox.c index e54f018fab..44da08dacb 100644 --- a/gtk/gtkcellareabox.c +++ b/gtk/gtkcellareabox.c @@ -866,6 +866,9 @@ get_allocated_cells (GtkCellAreaBox *box, AllocatedCell *cell; gint cell_position, cell_size; + if (!gtk_cell_renderer_get_visible (info->renderer)) + continue; + /* If were not aligned, place the cell after the last cell */ if (info->align) position = cell_position = group_allocs[i].position; -- 2.30.2